//
//  AccountService.m
//  WCN
//
//  Created by wsj2015 on 15/9/17.
//  Copyright (c) 2015年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "AccountService.h"



@implementation AccountService

@dynamic nurseId;
@dynamic serviceConfigs;


- (NSArray *)allServiceConfigs
{
    return [self.serviceConfigs allObjects];
}

- (void)addConfigsObject:(AccountServiceConfig *)value
{
    NSMutableSet *muSet = [NSMutableSet setWithSet:self.serviceConfigs];
    [muSet addObject:value];
    
    self.serviceConfigs = [muSet copy];
}

- (void)removeConfigsObject:(AccountServiceConfig *)value
{
    NSMutableSet *muSet = [NSMutableSet setWithSet:self.serviceConfigs];
    [muSet removeObject:value];
    
    self.serviceConfigs = [muSet copy];
}

- (void)addConfigs:(NSSet *)values
{
    self.serviceConfigs = [self.serviceConfigs setByAddingObjectsFromSet:values];
}

- (void)removeConfigs:(NSSet *)values
{
    NSMutableSet *muSet = [NSMutableSet setWithSet:self.serviceConfigs];
    for (id item in values) {
        [muSet removeObject:item];
    }
    
    self.serviceConfigs = [muSet copy];
}
@end
